package com.xzy.domain;

import lombok.Data;

import java.math.BigDecimal;

/**
 *  购物车商品项
 */
@Data
public class BookCartItem {
    /**
     * 商品id
     */
    private int id;
    /**
     * 商品名
     */
    private String name;
    /**
     * 数量
     */
    private int count;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 总价
     */
    private BigDecimal totalPrice;

    public BookCartItem(int id, String name, int count, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.price = price;
    }

    public BookCartItem() {
    }
}
